package com.ruoyi.system.domain.tumor;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 报告记录对象 report_record
 *
 * @author ruoyi
 * @date 2023-09-09
 */

@Data
public class ReportRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNo;

    /** 受检人姓名或者配偶姓名 */
    @Excel(name = "受检人姓名或者配偶姓名")
    private String patientName;

    /** 受检人电话 */
    @Excel(name = "受检人电话")
    private String patentPhone;

    /** 检测项目 */
    @Excel(name = "检测项目")
    private String sampleDecWay;

    /** 预出报告时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预出报告时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reportingDate;

    /** 出报告时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "出报告时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date reportDate;

    /** 报告链接 */
    @Excel(name = "报告链接")
    private String reportAddress;

    /** 预约时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date subscribeDate;

    /** 可预约日期设置表的id */
    @Excel(name = "可预约日期设置表的id")
    private Long subscribeDateId;

    /** 字典值，sys_appointment_period
     */
    @Excel(name = "字典值，sys_appointment_period")
    private String type;

    /**
     * 预约状态，1代表预约，0代表取消,默认为空，代表未预约
     */
    private String subscribeStatus;

    //是否解读 1是，0 否
    private String isInterpret;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("delFlag", getDelFlag())
                .append("orderNo", getOrderNo())
                .append("patientName", getPatientName())
                .append("patentPhone", getPatentPhone())
                .append("sampleDecWay", getSampleDecWay())
                .append("reportingDate", getReportingDate())
                .append("reportDate", getReportDate())
                .append("reportAddress", getReportAddress())
                .append("subscribeDate", getSubscribeDate())
                .append("subscribeDateId", getSubscribeDateId())
                .append("type", getType())
                .toString();
    }
}
